<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../css/reset.css" />
		<link rel="stylesheet" type="text/css" href="../css/head.css" />
		<link rel="stylesheet" type="text/css" href="../css/register16.css" />
		<script type="text/javascript" src="../js/jquery-3.0.0.min.js"></script>
		<script src="../js/zepto.min.js" type="text/javascript" charset="utf-8"></script>
	</head>

	<body>
		<div class="head">

			<img onclick="history.go(-1)" src="../img/xiaoyu.png" alt="" class="img_fan" />

			<h2>玩咖用户登录</h2>
			<a class="rightr" href="register19.html">注册</a>
		</div>
		<div class="icon"><img src="../img/16-tx.png" alt="" /></div>
		<form action="" method="post" class="register">
			<input type="text" class="shouji" placeholder="您的账号  (手机号)" onkeyup="this.value=this.value.replace(/[^\d]/g,'');" onafterpaste="this.value=this.value.replace(/[^\d]/g,'') " name="" value="" />
			<input type="password" class="mima" name="" id="" value="" class="mima" placeholder="您的玩卡账号密码" />
			<span class="denglu">登录</span>
		</form>
		<div class="wangji">
			<a href="password17.html">忘记密码</a>
		</div>

	</body>

	<script src="../js/dd.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		
		//post传值
		$('.denglu').click(function(){
			var obj = {};
			var psw = $('.mima').val();
		    var phone = $('.shouji').val();
			obj.psw = psw;
			obj.phone = phone;
			$.post('../php/b.php',obj,function(data){
				if(data=='登录成功'){
					window.location.href='firstPage.html';
				}else{
					alert('请输入正确的手机号或者密码')
				}
			})
			
		})
		
	</script>

</html>